Optimal. Leaf size=174 \[ -\frac {b n}{30 e^2 (d+e x)^5}+\frac {b n}{120 d e^2 (d+e x)^4}+\frac {b n}{90 d^2 e^2 (d+e x)^3}+\frac {b n}{60 d^3 e^2 (d+e x)^2}+\frac {b n}{30 d^4 e^2 (d+e x)}+\frac {b n \log (x)}{30 d^5 e^2}+\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}-\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}-\frac {b n \log (d+e x)}{30 d^5 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {45, 2382, 12,
78} \begin {gather*} -\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}+\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}+\frac {b n \log (x)}{30 d^5 e^2}-\frac {b n \log (d+e x)}{30 d^5 e^2}+\frac {b n}{30 d^4 e^2 (d+e x)}+\frac {b n}{60 d^3 e^2 (d+e x)^2}+\frac {b n}{90 d^2 e^2 (d+e x)^3}+\frac {b n}{120 d e^2 (d+e x)^4}-\frac {b n}{30 e^2 (d+e x)^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 78
Rule 2382
Rubi steps
\begin {align*} \int \frac {x \left (a+b \log \left (c x^n\right )\right )}{(d+e x)^7} \, dx &=\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}-\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}-(b n) \int \frac {-d-6 e x}{30 e^2 x (d+e x)^6} \, dx\\ &=\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}-\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}-\frac {(b n) \int \frac {-d-6 e x}{x (d+e x)^6} \, dx}{30 e^2}\\ &=\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}-\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}-\frac {(b n) \int \left (-\frac {1}{d^5 x}-\frac {5 e}{(d+e x)^6}+\frac {e}{d (d+e x)^5}+\frac {e}{d^2 (d+e x)^4}+\frac {e}{d^3 (d+e x)^3}+\frac {e}{d^4 (d+e x)^2}+\frac {e}{d^5 (d+e x)}\right ) \, dx}{30 e^2}\\ &=-\frac {b n}{30 e^2 (d+e x)^5}+\frac {b n}{120 d e^2 (d+e x)^4}+\frac {b n}{90 d^2 e^2 (d+e x)^3}+\frac {b n}{60 d^3 e^2 (d+e x)^2}+\frac {b n}{30 d^4 e^2 (d+e x)}+\frac {b n \log (x)}{30 d^5 e^2}+\frac {d \left (a+b \log \left (c x^n\right )\right )}{6 e^2 (d+e x)^6}-\frac {a+b \log \left (c x^n\right )}{5 e^2 (d+e x)^5}-\frac {b n \log (d+e x)}{30 d^5 e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 160, normalized size = 0.92 \begin {gather*} \frac {60 a d^6-72 a d^5 (d+e x)-12 b d^5 n (d+e x)+3 b d^4 n (d+e x)^2+4 b d^3 n (d+e x)^3+6 b d^2 n (d+e x)^4+12 b d n (d+e x)^5+12 b n (d+e x)^6 \log (x)+60 b d^6 \log \left (c x^n\right )-72 b d^5 (d+e x) \log \left (c x^n\right )-12 b n (d+e x)^6 \log (d+e x)}{360 d^5 e^2 (d+e x)^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.14, size = 557, normalized size = 3.20
method | result | size |
risch | \(-\frac {b \left (6 e x +d \right ) \ln \left (x^{n}\right )}{30 \left (e x +d \right )^{6} e^{2}}-\frac {12 \ln \left (c \right ) b \,d^{6}+72 \ln \left (e x +d \right ) b d \,e^{5} n \,x^{5}+180 \ln \left (e x +d \right ) b \,d^{2} e^{4} n \,x^{4}+240 \ln \left (e x +d \right ) b \,d^{3} e^{3} n \,x^{3}+180 \ln \left (e x +d \right ) b \,d^{4} e^{2} n \,x^{2}+72 \ln \left (e x +d \right ) b \,d^{5} e n x -72 \ln \left (-x \right ) b d \,e^{5} n \,x^{5}-180 \ln \left (-x \right ) b \,d^{2} e^{4} n \,x^{4}-240 \ln \left (-x \right ) b \,d^{3} e^{3} n \,x^{3}+6 i \pi b \,d^{6} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+72 a \,d^{5} e x -13 b \,d^{6} n +6 i \pi b \,d^{6} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-180 \ln \left (-x \right ) b \,d^{4} e^{2} n \,x^{2}-72 \ln \left (-x \right ) b \,d^{5} e n x +12 a \,d^{6}+12 \ln \left (e x +d \right ) b \,d^{6} n -12 \ln \left (-x \right ) b \,d^{6} n -171 b \,d^{4} e^{2} n \,x^{2}-90 b \,d^{5} e n x -12 b d \,e^{5} n \,x^{5}-66 b \,d^{2} e^{4} n \,x^{4}-148 b \,d^{3} e^{3} n \,x^{3}+36 i \pi b \,d^{5} e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+36 i \pi b \,d^{5} e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+12 \ln \left (e x +d \right ) b \,e^{6} n \,x^{6}-12 \ln \left (-x \right ) b \,e^{6} n \,x^{6}+72 \ln \left (c \right ) b \,d^{5} e x -6 i \pi b \,d^{6} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-36 i \pi b \,d^{5} e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-6 i \pi b \,d^{6} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )-36 i \pi b \,d^{5} e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{360 e^{2} d^{5} \left (e x +d \right )^{6}}\) | \(557\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 273, normalized size = 1.57 \begin {gather*} \frac {1}{360} \, b n {\left (\frac {12 \, x^{4} e^{4} + 54 \, d x^{3} e^{3} + 94 \, d^{2} x^{2} e^{2} + 77 \, d^{3} x e + 13 \, d^{4}}{d^{4} x^{5} e^{7} + 5 \, d^{5} x^{4} e^{6} + 10 \, d^{6} x^{3} e^{5} + 10 \, d^{7} x^{2} e^{4} + 5 \, d^{8} x e^{3} + d^{9} e^{2}} - \frac {12 \, e^{\left (-2\right )} \log \left (x e + d\right )}{d^{5}} + \frac {12 \, e^{\left (-2\right )} \log \left (x\right )}{d^{5}}\right )} - \frac {{\left (6 \, x e + d\right )} b \log \left (c x^{n}\right )}{30 \, {\left (x^{6} e^{8} + 6 \, d x^{5} e^{7} + 15 \, d^{2} x^{4} e^{6} + 20 \, d^{3} x^{3} e^{5} + 15 \, d^{4} x^{2} e^{4} + 6 \, d^{5} x e^{3} + d^{6} e^{2}\right )}} - \frac {{\left (6 \, x e + d\right )} a}{30 \, {\left (x^{6} e^{8} + 6 \, d x^{5} e^{7} + 15 \, d^{2} x^{4} e^{6} + 20 \, d^{3} x^{3} e^{5} + 15 \, d^{4} x^{2} e^{4} + 6 \, d^{5} x e^{3} + d^{6} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 305, normalized size = 1.75 \begin {gather*} \frac {12 \, b d n x^{5} e^{5} + 66 \, b d^{2} n x^{4} e^{4} + 148 \, b d^{3} n x^{3} e^{3} + 171 \, b d^{4} n x^{2} e^{2} + 13 \, b d^{6} n - 12 \, a d^{6} + 18 \, {\left (5 \, b d^{5} n - 4 \, a d^{5}\right )} x e - 12 \, {\left (b n x^{6} e^{6} + 6 \, b d n x^{5} e^{5} + 15 \, b d^{2} n x^{4} e^{4} + 20 \, b d^{3} n x^{3} e^{3} + 15 \, b d^{4} n x^{2} e^{2} + 6 \, b d^{5} n x e + b d^{6} n\right )} \log \left (x e + d\right ) - 12 \, {\left (6 \, b d^{5} x e + b d^{6}\right )} \log \left (c\right ) + 12 \, {\left (b n x^{6} e^{6} + 6 \, b d n x^{5} e^{5} + 15 \, b d^{2} n x^{4} e^{4} + 20 \, b d^{3} n x^{3} e^{3} + 15 \, b d^{4} n x^{2} e^{2}\right )} \log \left (x\right )}{360 \, {\left (d^{5} x^{6} e^{8} + 6 \, d^{6} x^{5} e^{7} + 15 \, d^{7} x^{4} e^{6} + 20 \, d^{8} x^{3} e^{5} + 15 \, d^{9} x^{2} e^{4} + 6 \, d^{10} x e^{3} + d^{11} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1992 vs.
\(2 (168) = 336\).
time = 84.57, size = 1992, normalized size = 11.45 \begin {gather*} \begin {cases} \tilde {\infty } \left (- \frac {a}{5 x^{5}} - \frac {b n}{25 x^{5}} - \frac {b \log {\left (c x^{n} \right )}}{5 x^{5}}\right ) & \text {for}\: d = 0 \wedge e = 0 \\\frac {\frac {a x^{2}}{2} - \frac {b n x^{2}}{4} + \frac {b x^{2} \log {\left (c x^{n} \right )}}{2}}{d^{7}} & \text {for}\: e = 0 \\\frac {- \frac {a}{5 x^{5}} - \frac {b n}{25 x^{5}} - \frac {b \log {\left (c x^{n} \right )}}{5 x^{5}}}{e^{7}} & \text {for}\: d = 0 \\- \frac {12 a d^{6}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {72 a d^{5} e x}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {12 b d^{6} n \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {13 b d^{6} n}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {72 b d^{5} e n x \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {90 b d^{5} e n x}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {180 b d^{4} e^{2} n x^{2} \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {171 b d^{4} e^{2} n x^{2}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {180 b d^{4} e^{2} x^{2} \log {\left (c x^{n} \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {240 b d^{3} e^{3} n x^{3} \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {148 b d^{3} e^{3} n x^{3}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {240 b d^{3} e^{3} x^{3} \log {\left (c x^{n} \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {180 b d^{2} e^{4} n x^{4} \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {66 b d^{2} e^{4} n x^{4}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {180 b d^{2} e^{4} x^{4} \log {\left (c x^{n} \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {72 b d e^{5} n x^{5} \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {12 b d e^{5} n x^{5}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {72 b d e^{5} x^{5} \log {\left (c x^{n} \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} - \frac {12 b e^{6} n x^{6} \log {\left (\frac {d}{e} + x \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} + \frac {12 b e^{6} x^{6} \log {\left (c x^{n} \right )}}{360 d^{11} e^{2} + 2160 d^{10} e^{3} x + 5400 d^{9} e^{4} x^{2} + 7200 d^{8} e^{5} x^{3} + 5400 d^{7} e^{6} x^{4} + 2160 d^{6} e^{7} x^{5} + 360 d^{5} e^{8} x^{6}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 352 vs.
\(2 (155) = 310\).
time = 4.31, size = 352, normalized size = 2.02 \begin {gather*} -\frac {12 \, b n x^{6} e^{6} \log \left (x e + d\right ) + 72 \, b d n x^{5} e^{5} \log \left (x e + d\right ) + 180 \, b d^{2} n x^{4} e^{4} \log \left (x e + d\right ) + 240 \, b d^{3} n x^{3} e^{3} \log \left (x e + d\right ) + 180 \, b d^{4} n x^{2} e^{2} \log \left (x e + d\right ) + 72 \, b d^{5} n x e \log \left (x e + d\right ) - 12 \, b n x^{6} e^{6} \log \left (x\right ) - 72 \, b d n x^{5} e^{5} \log \left (x\right ) - 180 \, b d^{2} n x^{4} e^{4} \log \left (x\right ) - 240 \, b d^{3} n x^{3} e^{3} \log \left (x\right ) - 180 \, b d^{4} n x^{2} e^{2} \log \left (x\right ) - 12 \, b d n x^{5} e^{5} - 66 \, b d^{2} n x^{4} e^{4} - 148 \, b d^{3} n x^{3} e^{3} - 171 \, b d^{4} n x^{2} e^{2} - 90 \, b d^{5} n x e + 12 \, b d^{6} n \log \left (x e + d\right ) + 72 \, b d^{5} x e \log \left (c\right ) - 13 \, b d^{6} n + 72 \, a d^{5} x e + 12 \, b d^{6} \log \left (c\right ) + 12 \, a d^{6}}{360 \, {\left (d^{5} x^{6} e^{8} + 6 \, d^{6} x^{5} e^{7} + 15 \, d^{7} x^{4} e^{6} + 20 \, d^{8} x^{3} e^{5} + 15 \, d^{9} x^{2} e^{4} + 6 \, d^{10} x e^{3} + d^{11} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.04, size = 251, normalized size = 1.44 \begin {gather*} \frac {\frac {13\,b\,d\,n}{12}-x\,\left (6\,a\,e-\frac {15\,b\,e\,n}{2}\right )-a\,d+\frac {57\,b\,e^2\,n\,x^2}{4\,d}+\frac {37\,b\,e^3\,n\,x^3}{3\,d^2}+\frac {11\,b\,e^4\,n\,x^4}{2\,d^3}+\frac {b\,e^5\,n\,x^5}{d^4}}{30\,d^6\,e^2+180\,d^5\,e^3\,x+450\,d^4\,e^4\,x^2+600\,d^3\,e^5\,x^3+450\,d^2\,e^6\,x^4+180\,d\,e^7\,x^5+30\,e^8\,x^6}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d}{30\,e^2}+\frac {b\,x}{5\,e}\right )}{d^6+6\,d^5\,e\,x+15\,d^4\,e^2\,x^2+20\,d^3\,e^3\,x^3+15\,d^2\,e^4\,x^4+6\,d\,e^5\,x^5+e^6\,x^6}-\frac {b\,n\,\mathrm {atanh}\left (\frac {2\,e\,x}{d}+1\right )}{15\,d^5\,e^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________